package cn.com.dhc.chesishan;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AllParameters extends HttpServlet {

	private static final long serialVersionUID = -5768200281357961111L;

	@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		response.setCharacterEncoding("UTF-8");
		response.setContentType("text/html");
		String docType = "<!doctype html public \"-//w3c//dtd html 4.0"
				+ "transitional//en\">\n";
		PrintWriter out = response.getWriter();
		out.println(docType
				+ "<html>\n"
				+ "<body>\n"
				+ "<form action=\"ReadParams\" method=\"POST\" target=\"_blank\">\n"
				+ "<input type=\"checkbox\" name=\"maths\" checked=\"checked\" />\n"
				+ "数学\n"
				+ "<input type=\"checkbox\" name=\"physics\"  />\n"
				+ "物理\n"
				+ "<input type=\"checkbox\" name=\"chemistry\" checked=\"checked\" />\n"
				+ "化学\n" + "<input type=\"submit\" value=\"选择学科\" />\n"
				+ "</form></body></html>");
	}

	@Override
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

	}

}
